filechooserwidget: Create recent manager when setting operation mode
authorTimm Bäder <mail@baedert.org>
Fri, 30 Aug 2019 05:37:55 +0000 (07:37 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 9 Sep 2019 15:36:26 +0000 (17:36 +0200)
commit4c28ee80a622867e83c7540bb354b89b39049aef
treec553a84fdfc628d9d83c2d379762dab1663485b5
parentf4c4fe860bc93545ed2334d76e0987a638af538b
filechooserwidget: Create recent manager when setting operation mode

Creating a recent manager can be fairly expensive and we won't use it if
the widget is not visible or the recent mode has not been entered. Code
other places can already handle a NULL recent manager, so just create it
when entering the recent mode. And shove 25ms of startup time off the
widget-factory this way.
gtk/gtkfilechooserwidget.c